package cc.ailley.proxy.dynamic.custom;

import cc.ailley.proxy.IUserDao;
import cc.ailley.proxy.IUserDaoImpl;

public class CustomProxyFactoryTest {

    public static void main(String[] args) {
        IUserDao iUserDao = new IUserDaoImpl();
        CustomProxyFactory customProxyFactory = new CustomProxyFactory(iUserDao);
        IUserDao obj = (IUserDao) customProxyFactory.getInstance(iUserDao);
        obj.save();
    }
}
